THEOS_DEVICE_IP = localhost
THEOS_DEVICE_PORT = 2222
DEBUG = 0
FINALPACKAGE = 1

# 定义打包模式常量
ROOTFULL = 0
ROOTLESS = 1
ROOTHIDE = 2

# 默认使用 rootfull (0)，可通过命令行覆盖，如 `make TYPE=1` 选择 rootless
TYPE ?= $(ROOTFULL)

TARGET = iphone:clang:16.5:15.0
ifeq ($(TYPE), $(ROOTLESS))
    THEOS_PACKAGE_SCHEME = rootless
else ifeq ($(TYPE), $(ROOTHIDE))
    THEOS_PACKAGE_SCHEME = roothide
else 
	TARGET = iphone:clang:16.5:12.0
endif

include $(THEOS)/makefiles/common.mk

TOOL_NAME = keychain_clear

keychain_clear_FILES = main.m
keychain_clear_CFLAGS = -fno-objc-arc -Wno-error -Wno-module-import-in-extern-c
keychain_clear_CODESIGN_FLAGS = -Sentitlements.xml
keychain_clear_INSTALL_PATH = /usr/bin
$(TOOL_NAME)_EXTRA_FRAMEWORKS = GCDWebServers

include $(THEOS_MAKE_PATH)/tool.mk

include $(THEOS_MAKE_PATH)/aggregate.mk
 